import instance from './interceptors'

export const addOrder = (data) => {
    return instance.post('/api/order/addOrder',data)
}

export const getOrders = () => {
    return instance.get('/api/order/getOrders');
}

export const passOrder = (data) => {
    return instance.post('/api/order/passOrder',data)
}

export const deleteOrder = (data) => {
    return instance.post('/api/order/deleteOrder',data)
}

export const passAllOrder = () => {
    return instance.get('/api/order/passAllOrder')
}

export const getUserOrders = (data) => {
    return instance.post('/api/order/getUserOrders',data)
}